package com.yangmf.auto_message_handle.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "desk")

public class DeskProperties {

    private String key;
    private String url;

    // Getters and Setters
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "DeskConfig{" +
                "key='" + key + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}